<?php
class Default_Form_Link extends Zend_Form
{
    public function __construct()
    {
        parent::__construct($options);
        $this->setName('Link');

        $this->addElement('hidden', 'id');

        $this->addElement('text', 'start', array(
            'label'      => 'Sākuma virsotne:',
            'required'   => true,
            'filters'    => array(
                'StripTags',
                'StringTrim'
            ),
            'validators' => array(
                'NotEmpty',
                'int',
                )
            )
        );

        $this->addElement('text', 'end', array(
            'label'      => 'Beigu virsotne:',
            'required'   => true,
            'filters'    => array(
                'StripTags',
                'StringTrim'
            ),
            'validators' => array(
                'NotEmpty',
                'int',
                )
            )
        );

        $this->addElement('text', 'weight', array(
            'label'      => 'Svars:',
            'required'   => false,
            'filters'    => array(
                'StripTags',
                'StringTrim'
            ),
            'validators' => array(
                'float'
                )
            )
        );

        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Saglabāt',
        ));
    
    }
}